package com.example.controller.datastatistics.yanglaofuwujigou;


import com.example.bean.datastatistics.yanglaofuwujigou.YangLaoFuWuJiGouDuoTiaoJian;
import com.example.service.datastatistics.yanglaofuwujigou.YangLaoFuWuJiGouService;
import com.example.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/yanglaofuwujigou")
public class YangLaoFuWuJiGouController {
    @Autowired
    YangLaoFuWuJiGouService yangLaoFuWuJiGouService;

    @PostMapping("/one")
    public Result oneList(@RequestBody YangLaoFuWuJiGouDuoTiaoJian yangLaoFuWuJiGouDuoTiaoJian){
        Result result = new Result();
        result.ok();
        result.setData(yangLaoFuWuJiGouService.one(yangLaoFuWuJiGouDuoTiaoJian));
        System.out.println(yangLaoFuWuJiGouService.one(yangLaoFuWuJiGouDuoTiaoJian));
        return result;
    }
}
